package com.xbongbong.bi.domain;

import com.xbongbong.pro.domain.entity.DataSetConfigEntity;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface DataSetConfigDao {
    int insert(DataSetConfigEntity entity);

    void insertBatch(List<DataSetConfigEntity> list);

    DataSetConfigEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );
    /**
     * 通过数据集id获取配置
     * @param setId 数据集id
     * @param corpid
     * @return com.xbongbong.pro.domain.entity.DataSetConfigEntity
     * @author zcp
     * @since v1.0
     * @version v1.0
     */
    DataSetConfigEntity getByDataSetId(@Param("setId") Long setId, @Param("corpid") String corpid );

    int update(DataSetConfigEntity entity);

    List<DataSetConfigEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}